3.2714 \(\int x^{-1+2 n} \left (a+b x^n\right )^p \, dx\)

Optimal. Leaf size=49 \[ \frac{\left (a+b x^n\right )^{p+2}}{b^2 n (p+2)}-\frac{a \left (a+b x^n\right )^{p+1}}{b^2 n (p+1)} \]

[Out]

-((a*(a + b*x^n)^(1 + p))/(b^2*n*(1 + p))) + (a + b*x^n)^(2 + p)/(b^2*n*(2 + p))

_______________________________________________________________________________________

Rubi [A]  time = 0.0779127, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118 \[ \frac{\left (a+b x^n\right )^{p+2}}{b^2 n (p+2)}-\frac{a \left (a+b x^n\right )^{p+1}}{b^2 n (p+1)} \]

Antiderivative was successfully verified.

[In]  Int[x^(-1 + 2*n)*(a + b*x^n)^p,x]

[Out]

-((a*(a + b*x^n)^(1 + p))/(b^2*n*(1 + p))) + (a + b*x^n)^(2 + p)/(b^2*n*(2 + p))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 11.5897, size = 37, normalized size = 0.76 \[ - \frac{a \left (a + b x^{n}\right )^{p + 1}}{b^{2} n \left (p + 1\right )} + \frac{\left (a + b x^{n}\right )^{p + 2}}{b^{2} n \left (p + 2\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**(-1+2*n)*(a+b*x**n)**p,x)

[Out]

-a*(a + b*x**n)**(p + 1)/(b**2*n*(p + 1)) + (a + b*x**n)**(p + 2)/(b**2*n*(p + 2
))

_______________________________________________________________________________________

Mathematica [A]  time = 0.051251, size = 40, normalized size = 0.82 \[ \frac{\left (a+b x^n\right )^{p+1} \left (b (p+1) x^n-a\right )}{b^2 n (p+1) (p+2)} \]

Antiderivative was successfully verified.

[In]  Integrate[x^(-1 + 2*n)*(a + b*x^n)^p,x]

[Out]

((a + b*x^n)^(1 + p)*(-a + b*(1 + p)*x^n))/(b^2*n*(1 + p)*(2 + p))

_______________________________________________________________________________________

Maple [A]  time = 0.083, size = 61, normalized size = 1.2 \[ -{\frac{ \left ( -{b}^{2}p \left ({x}^{n} \right ) ^{2}-ap{x}^{n}b-{b}^{2} \left ({x}^{n} \right ) ^{2}+{a}^{2} \right ) \left ( a+b{x}^{n} \right ) ^{p}}{ \left ( 1+p \right ) \left ( 2+p \right ) n{b}^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^(-1+2*n)*(a+b*x^n)^p,x)

[Out]

-(-b^2*p*(x^n)^2-a*p*x^n*b-b^2*(x^n)^2+a^2)/(1+p)/(2+p)/n/b^2*(a+b*x^n)^p

_______________________________________________________________________________________

Maxima [A]  time = 1.40728, size = 69, normalized size = 1.41 \[ \frac{{\left (b^{2}{\left (p + 1\right )} x^{2 \, n} + a b p x^{n} - a^{2}\right )}{\left (b x^{n} + a\right )}^{p}}{{\left (p^{2} + 3 \, p + 2\right )} b^{2} n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)^p*x^(2*n - 1),x, algorithm="maxima")

[Out]

(b^2*(p + 1)*x^(2*n) + a*b*p*x^n - a^2)*(b*x^n + a)^p/((p^2 + 3*p + 2)*b^2*n)

_______________________________________________________________________________________

Fricas [A]  time = 0.238824, size = 84, normalized size = 1.71 \[ \frac{{\left (a b p x^{n} - a^{2} +{\left (b^{2} p + b^{2}\right )} x^{2 \, n}\right )}{\left (b x^{n} + a\right )}^{p}}{b^{2} n p^{2} + 3 \, b^{2} n p + 2 \, b^{2} n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)^p*x^(2*n - 1),x, algorithm="fricas")

[Out]

(a*b*p*x^n - a^2 + (b^2*p + b^2)*x^(2*n))*(b*x^n + a)^p/(b^2*n*p^2 + 3*b^2*n*p +
 2*b^2*n)

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**(-1+2*n)*(a+b*x**n)**p,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x^{n} + a\right )}^{p} x^{2 \, n - 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)^p*x^(2*n - 1),x, algorithm="giac")

[Out]

integrate((b*x^n + a)^p*x^(2*n - 1), x)